-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix: update parameter names in new task description for consistency #2967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
@ellipsis-dev review this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed everything up to 3e56f86 in 52 seconds. Click for details.
- Reviewed
26lines of code in1files - Skipped
0files when reviewing. - Skipped posting
3draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/core/prompts/tools/new-task.ts:8
- Draft comment:
Good update: the parameter has been renamed from mode to mode_slug for consistency, reducing confusion with display names. Please ensure all parts of the system referencing this tool are updated accordingly. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =40%<= threshold70%The comment is asking the PR author to ensure that all parts of the system referencing the tool are updated, which violates the rule against asking the author to ensure things. However, it does mention the reason for the change, which is consistency and reducing confusion, which is useful information. The comment could be rephrased to focus on the consistency aspect without asking the author to ensure updates.
2. src/core/prompts/tools/new-task.ts:8
- Draft comment:
Renamed parameter to 'mode_slug' improves clarity by specifying an internal identifier. Ensure any tests, documentation, or related tools referencing the old name are also updated accordingly. - Reason this comment was not posted:
Confidence changes required:0%<= threshold70%None
3. src/core/prompts/tools/new-task.ts:13
- Draft comment:
Usage instructions now consistently use '<mode_slug>' which aligns with the updated parameter name. Verify that all invocations (e.g., in switch_mode) utilize this change to prevent silent failures. - Reason this comment was not posted:
Confidence changes required:0%<= threshold70%None
Workflow ID: wflow_MVLJ5lIWwr0vhGBK
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
|
Hey @ellipsis-dev, the snapshot for SYSTEM_PROMPT should maintain consistent system prompt is failing in system.test.ts. Can you update the snapshot or fix the code so the test passes? |
… in new task description for consistency);
… in new task usage
… in task creation
mrubens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense, though we also need to update the handler code for these different tools I think? And probably need to continue to handle the old mode param for backwards compatibility.
|
I will check this again in a fresh gh codespace. It was working without changing the handler in my local debug session. |
Context
In the MODES section, each mode is listed with:
A display name (e.g., "🧠 Auto-Coder" mode)
A mode_slug in parentheses (e.g., (code))
However, when calling tools:
switch_mode expects the mode_slug (e.g., "code", "ask", "architect").
new_task was previously using a parameter named mode, but it actually expected the mode_slug too — not the display name — leading to unnecessary confusion.
Because of this mismatch, some calls to switch_mode were incorrectly passing display names instead of slugs, resulting in silent failures.
👉 Fix: Standardize all references to use mode_slug across the tools. Ensure only slugs like "code", "ask", and "architect" are passed — never the display name.
Implementation
Version: 3.14.3
default prompt: orchestrator
new_task
Description: Create a new task with a specified starting mode and initial message. This tool instructs the system to create a new Cline instance in the given mode with the provided message.
Parameters:
Usage:
<new_task>
your-mode-slug-here
Your initial instructions here
</new_task>
Example:
<new_task>
code
Implement a new feature for the application.
</new_task>
Fix parameter naming inconsistency in new_task tool
This PR changes the parameter name from mode to mode_slug in the new_task tool definition to maintain consistency with other mode-related tools like switch_mode. This change clarifies that the expected value is the internal mode identifier (slug) rather than the display name, reducing potential confusion for users. The functional behavior remains unchanged
Screenshots
How to Test
Get in Touch
discord: d-oit
Important
Renames
modetomode_sluginnew_tasktool for consistency withswitch_mode, ensuring only mode slugs are used.modetomode_slugingetNewTaskDescription()innew-task.ts.system.test.ts.snapto reflectmode_slug.new_tasktool usesmode_slugconsistently withswitch_modetool.This description was created by
for bc33ccf. You can customize this summary. It will automatically update as commits are pushed.